package pojo;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Student {
    private int sId;
    private String studentNum;
    private String studentName;
    private String gender;
    private int age;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birthday;
    private String strBirthday;
    private int classId;
    private int hostelId;
    private String phone;
    private String email;
    private String homeAddress;
    private String emergencyContact;
    private String emergencyContactPho;
    private String major;
    private int status;
    private int delFlag;
    private String createBy;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createTime;
    private String updateBy;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date updateTime;
    private String remark;

    public Student() {
    }

    public Student(int sId, String studentNum, String studentName, String  gender, int age, Date birthday, int classId, int hostelId, String phone, String email, String homeAddress, String emergencyContact, String emergencyContactPho, String major, int status, int delFlag, String createBy, Date createTime, String updateBy, Date updateTime, String remark) {
        this.sId = sId;
        this.studentNum = studentNum;
        this.studentName = studentName;
        this.gender = gender;
        this.age = age;
        this.birthday = birthday;
        this.classId = classId;
        this.hostelId = hostelId;
        this.phone = phone;
        this.email = email;
        this.homeAddress = homeAddress;
        this.emergencyContact = emergencyContact;
        this.emergencyContactPho = emergencyContactPho;
        this.major = major;
        this.status = status;
        this.delFlag = delFlag;
        this.createBy = createBy;
        this.createTime = createTime;
        this.updateBy = updateBy;
        this.updateTime = updateTime;
        this.remark = remark;
    }

    public Student(int sId, String studentNum, String  gender, String studentName, int age, Date birthday, int classId, int hostelId, String phone, String email, String homeAddress, String emergencyContact, String emergencyContactPho, String major, int delFlag, int status, String updateBy, Date updateTime, String remark) {
        this.sId = sId;
        this.studentNum = studentNum;
        this.gender = gender;
        this.studentName = studentName;
        this.age = age;
        this.birthday = birthday;
        this.classId = classId;
        this.hostelId = hostelId;
        this.phone = phone;
        this.email = email;
        this.homeAddress = homeAddress;
        this.emergencyContact = emergencyContact;
        this.emergencyContactPho = emergencyContactPho;
        this.major = major;
        this.delFlag = delFlag;
        this.status = status;
        this.updateBy = updateBy;
        this.updateTime = updateTime;
        this.remark = remark;
    }

    public int getsId() {
        return sId;
    }

    public void setsId(int sId) {
        this.sId = sId;
    }

    public String getStudentNum() {
        return studentNum;
    }

    public void setStudentNum(String studentNum) {
        this.studentNum = studentNum;
    }

    public String getStudentName() {
        return studentName;
    }

    public void setStudentName(String studentName) {
        this.studentName = studentName;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public int getClassId() {
        return classId;
    }

    public void setClassId(int classId) {
        this.classId = classId;
    }

    public int getHostelId() {
        return hostelId;
    }

    public void setHostelId(int hostelId) {
        this.hostelId = hostelId;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getHomeAddress() {
        return homeAddress;
    }

    public void setHomeAddress(String homeAddress) {
        this.homeAddress = homeAddress;
    }

    public String getEmergencyContact() {
        return emergencyContact;
    }

    public void setEmergencyContact(String emergencyContact) {
        this.emergencyContact = emergencyContact;
    }

    public String getEmergencyContactPho() {
        return emergencyContactPho;
    }

    public void setEmergencyContactPho(String emergencyContactPho) {
        this.emergencyContactPho = emergencyContactPho;
    }

    public String getMajor() {
        return major;
    }

    public void setMajor(String major) {
        this.major = major;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(int delFlag) {
        this.delFlag = delFlag;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
